import Vue from 'vue'
//引入饿了么ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
//引入粒子背景
import VueParticles from 'vue-particles'
Vue.use(VueParticles)
import VueResource from 'vue-resource'
Vue.use(VueResource)
import './assets/fonts/iconfont.css'
import './assets/css/global.css'
import 'layui/dist/css/layui.css'
import App from './App.vue';
//路由
import router from './router'

//vuex
import store from './store'
//axios
import axios from 'axios'
axios.defaults.baseURL = '/api'

Vue.prototype.$axios = axios
    //引入cookie
import cookie from 'vue-cookie'
Vue.use(cookie)
    /* import BaiduMap from 'vue-baidu-map'
    Vue.use(BaiduMap, {
            ak: 'evhu5PAnEKRfHeacpjZd5mfigRLmSgPy'
        }) */
import AMap from 'vue-amap' // 这个引入的最好放在引入的vue上面

Vue.use(AMap)
AMap.initAMapApiLoader({
    key: '78d9fe7e7c5817a03e0a80b562995fdb', // 你的key
    plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.Geolocation', 'AMap.Geocoder', 'AMap.AMapManager', 'AMap.Marker'], //应用功能项
    v: '1.4.4', //版本
    uiVersion: '1.0' //ui版本
})
import './providers/permission'
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
import importJs from './importJs'
Vue.config.productionTip = false
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')